<template>
  <el-menu :unique-opened="true">
    <menu_slot_row v-for="row in config" :data="row" @click:li="$emit('click:li', $event)">
      <template #default="{row}">
        <slot :row="row"></slot>
      </template>
    </menu_slot_row>
  </el-menu>
</template>

<script>
import menu_slot_row from "@/components/menu_slot_row.vue";
export default {
  name: "menu_slot",
  components: {menu_slot_row},
  props: ['config'],
  emits: ['click:li'],
  data(){
    return {
      need_display: true,
    }
  },
  methods: {
  },
  watch: {
  },
  mounted() {
  }
}
</script>

<style>

</style>